<template>
  <div v-loading="formLoading">
    <div class="canpanyer-box" style="margin-top: 20px">
      <el-table size="mini" :data="basicInfo.enterprisePartners" border>
        <el-table-column align="center" label="股东名称">
          <template slot-scope="scope">
            <div>
              {{ scope.row.stockName }}
              <span
                ><el-tag type="danger" size="mini" v-if="scope.$index == 0"
                  >大股东</el-tag
                ></span
              >
            </div>
          </template>
        </el-table-column>
        <el-table-column align="center" prop="stockType" label="股东类型">
        </el-table-column>
        <el-table-column align="center" prop="stockPercent" label="持股比例(%)">
        </el-table-column>
        <el-table-column
          align="center"
          prop="shouldCapi"
          label="认缴出资额(万)"
        >
        </el-table-column>
        <el-table-column align="center" prop="shoudDate" label="认缴出资日期">
        </el-table-column>
        <el-table-column
          align="center"
          prop="finalBenefitPercent"
          label="最终受益股份(%)"
        >
        </el-table-column>
        <el-table-column align="center" prop="capiDate" label="首次持股日期">
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>
<script>
import { getBusinessCirclesStockholder } from "@/api/report";
export default {
  name: "gsInfo",
  props: {
    detailInfo: {
      type: Object,
      default: () => {}
    },
    basicInfo: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      // basicInfo: {},
      stockholderList: [],
      formLoading: false
    };
  },
  created() {
    // this.getBusinessCirclesStockholder();
  },
  methods: {
    getBusinessCirclesStockholder() {
      this.formLoading = true;
      let params = {
        creditCode: this.detailInfo.creditCode
      };
      getBusinessCirclesStockholder(params)
        .then(res => {
          this.formLoading = false;
          this.basicInfo = res.data;
          this.stockholderList = res.data.qccEnterprisePartnersList;
        })
        .finally(() => {
          this.formLoading = false;
        });
    }
  }
};
</script>

<style scoped lang="scss">
.f5bg {
  background: #f5f5f5;
}
.fx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  .block {
    width: 48%;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 18px 0;

    //line-height: 56px;
    .block-left {
      display: inline-block;
      //display: flex;
      text-align: right;
      width: 50%;
      white-space: wrap;
      color: #999;
    }
    .block-right {
      display: inline-block;
      //display: flex;
      line-height: 18px;
      color: #222;
      width: 50%;
    }
  }
}
.title-msg {
  font-size: 18px;
  font-weight: 500;
  color: #222222;
}
</style>
